#include "DBDiagnostic.h"
#include "ErrorCheck.h"
#include <string.h>


DBDiagnostic::DBDiagnostic(void)
{
}


DBDiagnostic::~DBDiagnostic(void)
{
}

void DBDiagnostic::SetSessionDiagnosticAttribute( OCISvcCtx *pSvcCtx,OCIError *pErr,const char *AttributeValue,ub4 AttrivuteCode )
{
	OCISession *pUser=NULL;
	CheckErr(pErr,OCIAttrGet(pSvcCtx,OCI_HTYPE_SVCCTX,&pUser,NULL,OCI_ATTR_SESSION,pErr));
	CheckErr(pErr,OCIAttrSet(pUser,OCI_HTYPE_SESSION,(void *)AttributeValue,(ub4)strlen(AttributeValue),AttrivuteCode,pErr));
}
